<?php

class Deal extends AppModel {
	var $name = 'Deal';
	var $displayField = 'id';
	var $belongsTo = array('Product', 'User');
    var $validate = array(
        'product_id' => array(
            'not_empty' => array('rule' => 'notempty', 'message' => 'Product is required')
            ),
        'price' => array(
            'not_empty' => array('rule' => 'notempty', 'message' => 'Price is required.')
            )
    );
}

?>
